<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script src="js/informationPage.js"></script>

<!-- 
    모든 음식 정보 페이지
 -->
    <div id="adminMode" class="foodSearch">
		<div id="foodSearchbar">
			<h3>전체 음식 관리</h3>
			<form name="foodAllSearch">
				<table style="border: 1px solid gray; width:800px; height:60px;">
					<tr>
						<td>
							음식명 : 
				            <input type="text" name="foodSearch" size="50"/>
				            <input type="submit" value="검색"/>
				       </td>
	            	</tr>
	            </table>
	        </form>
        </div>
        
        <div style="padding: 15px 0px"></div>
        
        <div id="foodAllList">
        	전체 음식 : 
        	<table style="border: 1px solid gray; width: 800px; height: 30px; text-align: center">
				<tr style="background: skyblue">
					<td style="width: 50px">음식번호</td>
					<td style="width: 200px">음식명</td>
					<td style="width: 100px">섭취목적</td>
					<td style="width: 100px">음식종류</td>
					<td style="width: 100px">음식분류</td>
					<td style="width: 100px">수정일</td>
					<td style="width: 150px"></td>
            	</tr>
            	<c:forEach var="food" items="${food }">
            	<tr>
            		<td>${food.foodNo }</td>
					<td>${food.foodName }</td>
					<td>${food.foodIngestPurpose }</td>
					<td>${food.foodClass }</td>
					<td>${food.foodClassfication }</td>
					<td rowspan="2">${food.updateDate }</td>
					<td>
					
						<a href="javascript:adminFoodPreModify(${food.foodNo });"><input type="button" value="수정하기">
						</a>
						<input type="button" value="삭제하기">
						
						
					</td>
            	</tr>
            	
            	<tr>
            	</tr>
            	</c:forEach>
            	
	        </table>
	        <br>
        페이징
        
        <br><br>
        </div>
        
</div>